﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.Accounts.Role
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["roleID"] != null && Request.Params["roleID"].Trim() != "")
                {
                    strid = Request.Params["roleID"];
                    string RoleID = strid;
                    ShowInfo(RoleID);
                }
            }
        }

        private void ShowInfo(string RoleID)
        {
            Vincent.Permission.Model.account_roles model = Vincent.Permission.Functions.Account.GetSingleRole(RoleID);// bll.GetModel(RoleID);
            this.lblRoleName.Text = model.RoleName;
            this.lblDescription.Text = model.Description;

        }


    }
}